;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages uq)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (gnu packages crates-io)
  #:use-module (gnu packages crates-graphics)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages tls)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system cargo))

(define-public uq
  (package
    (name "uq")
    (version "0.1.2")
    (source (origin
              (method url-fetch)
              (uri (crate-uri "uq" version))
              (file-name (string-append name "-" version ".tar.gz"))
              (sha256
               (base32
                "0iy1a8qhjnm2q5mhzbc8apjqwjar3f63h7hkzw2k0h721979h7hy"))))
    (build-system cargo-build-system)
    (arguments
     (list #:cargo-inputs `(("rust-clap" ,rust-clap-2))))
    (home-page "https://github.com/lostutils/uq")
    (synopsis "sort | uniq alternative.")
    (description "sort | uniq alternative.")
    (license license:expat)))
